﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Rename.UC.组合
{
    public partial class Uc保存方式 : UserControl
    {
        public Uc保存方式()
        {
            InitializeComponent();
        }

        private void ucLink打开目录_ClickLinkLabel(object sender, UcLinkLabelEventArgs e)
        {
            System.Diagnostics.Process.Start("explorer.exe", ucTxtPath.Text.Trim());
        }

        private void ucLink选择目录_ClickLinkLabel(object sender, UcLinkLabelEventArgs e)
        {
            FolderBrowserDialog fbd = new FolderBrowserDialog();
            if (fbd.ShowDialog() == DialogResult.OK)
            {
                string dir = fbd.SelectedPath;
                ucTxtPath.Text = dir;
            }
        }
    }
}
